Guide on redirecting the user to a specific page using an iframe

i have two different website urls

  1. www.kadco-international.com
  2. www.kadco-international.com/company.html

When using the iframe in asp.net to redirect the user to the company.html page, it always redirects to the index.html.

Check out what I have tried here: http://jsfiddle.net/Mohsin_Ali/ZqbCK/

Code:

<iframe width="340" scrolling="no" height="37" 
src="www.kadco-international.com/company.html" id="ifr" hspace="0" 
marginwidth="0" marginheight="0" vspace="0" 
style="width: 585px; height: 47px; border: #dddddd 1px solid" ></iframe>

Answer №1

Are you looking for this? I have simply included an http:// in the src.

<iframe width="340" scrolling="no" height="37" src="http://kadco-international.com/company.html" id="ifr" hspace="0" marginwidth="0" 

marginheight="0" vspace="0" style="width: 585px; height: 47px; border: #dddddd 1px solid" ></iframe>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Change the class of the div when the first div is selected

My goal is to switch the class of the #klapp element (from .klapp to .klappe) whenever a click event happens inside the #label-it container, including when the #klapp element itself is clicked. The challenge is that I am not able to use unique IDs for each ...

When the button is clicked, verify the existence of the file, then display a message and undo

I encountered a situation where I needed to verify if a user tries to input data with the same date and same region again, they should receive a prompt alert. I attempted to achieve this using code in the backend, as shown below:- protected void btnSave ...

A guide on extracting a div element without a class using Html Agility Pack

Can you help me extract the text 'Galatasaray.' from the HTML code below? I'm not sure how to specify it properly. <div class="dRib1"> <h2>Information</h2> </div> <div>Galatasaray.</div> ...

Elements in Motion

Working on a parallax effect, I've managed to assign unique scroll speeds to (almost) every element. Moreover, these elements are programmed not to activate their scroll speed until they enter the viewport. Below is the JavaScript code for trigger co ...

AngularJS Date Selection with UI Bootstrap Tool

Just starting out with AngularJS and looking to add a datepicker to my project. I'm using angular.min.js version AngularJS v1.5.0-rc.1 ui-bootstrap-tpls-0.12.0.js version 0.12.0. There are so many examples online that it's confusing. How do I go ...

What measures do websites such as yelp and urbandictionary implement to avoid multiple votes from unregistered users?

It is interesting to note that on urbandictionary, you do not need to be logged in to upvote a definition. For example, if you visit and upvote the first word, it will record your vote. Even if you open an incognito window and try to upvote again, or use ...

Guide on extracting a JavaScript string from a URL using Django

How can I extract "things" from the JavaScript URL "/people/things/" without any unnecessary characters? I've attempted inefficient methods like iteration, but struggle with removing the undesired parts of the string, leading to slow performance. Th ...

What is the best way to add a line break to a menu item?

Looking for some assistance with Angular Material here. I am trying to design a menu that includes an item with two lengthy paragraphs, but the text is getting truncated and only showing the first paragraph. If anyone could offer guidance or help, it woul ...

What is the best way to ensure that every item on a list can be

Is there a way to make both the left and right sides of a list item clickable? Currently, only the right side is clickable in my case. Any suggestions? This is my HTML: <body> <aside id = "aside"> <div id="column"> ...

How can I effectively retrieve the JWT in a node environment?

I've successfully set up JWT authentication using Node.js. After the user signs in, Node.js generates a JWT and sends it back to be stored in the localStorage. However, I've encountered an issue when trying to access this token within the express ...

Display a specific element only if another element exceeds a specified height

A snippet of HTML code is given below: <span class="day-number">{{day-number}}</span> <div class="event-box"> <div class="event-container"> </div> <div class="more-events">more ...</div> </div> The .e ...

The compatibility between an Ajax client and a Django server across different domains is only possible when using JSONP

Currently, our Django application is functioning on tomcat with Basic Authentication. I am interested in making cross-domain requests, and have found that it only works when using $.ajax({...dataType: 'JSONP',...}). The use of dataType: JSON does ...

The code is slicing data, but the changes are not reflecting in the user interface

Initially, there are three drop down menus displayed. Upon selecting an option from the first drop down menu, the values in the second drop down menu load. After selecting an option from the second drop down menu, a new set of drop downs appears. However, ...

What is the best method to incorporate a JavaScript object key's value into CSS styling?

I am currently working on a project in React where I'm iterating over an array of objects and displaying each object in its own card on the screen. Each object in the array has a unique hex color property, and my goal is to dynamically set the font co ...

sending multiple array values to back-end with c#

How can I pass values from client side to server side in the code behind? ...

The functionality of a custom control's jQuery code is not functioning properly following a postback

I'm currently developing a custom control that generates jQuery validation scripts for controls with changing validation rules based on configuration. It's necessary for the validation to be client-side due to large postbacks and slow, low-bandwi ...

Is it possible for the server to initiate communication with the client

Every time I try to find a solution, Comet always comes up. But it seems like overkill for what I need - just around 100 users at most, with maybe 10 online simultaneously. Is there a simpler and more suitable option for my needs, such as pushing data to ...

Exploring the differences between two CSS style attributes using JQuery

Can someone help me with a quick question about CSS? I need to compare two style attributes, specifically margin-left. If the margin-left is less than 500px, I don't want to make any changes. However, if it's greater than 500px, I want to add ano ...

The iPhone header position switches when an HTML5 input type number is selected

I am currently working on a project that involves jQuery Mobile and PhoneGap. One issue I am encountering is when using the iPhone version, the header position changes when I click on an input type number. NOTE: When I focus on the input type number in my ...

What is the best way to incorporate an update panel into a webpage when it includes user controls like abc.aspx?

My website consists of a master page, abc.aspx, which includes an iframe tag as a content placeholder. Within this iframe, I am loading the home.aspx page. The home.aspx page contains several user controls. As a result, I would like to know how to impleme ...