If you have one or several links on your webpage, it could be your links resources, you might want your viewers to have the choice of opening the links in _self or in a new window / tab _blank
This code goes in the head section:
if (target) where = "_blank";
else where = "_self";
for (var i=0; i<=(document.links.length-1); i++)
document.links[i].target = where;
And this code goes in your Body section:
<input type="checkbox" name="targetnew" onclick="mylink(this.checked)">
<p>Do you want to open this link in a new window?</p>
You can add as many link in the form section as you like and choose if each link should have a checkbox or just one checkbox the decides all the targets.
I need to find a way to open a new _blank type window when a user submits. I have found a few answers but none that fit what i need. alot tell you to use target blank on submit, but i have two buttons that do 2 completely different things. Is there a way to achieve that? here is the code i use!
I have a situation where I'm sending full sizes images to new windows from linked thumnails. Using _blank, the window is rendering at a very small size, and the image scales to that size on some browsers.
However my problem occurs when the user uses the browsers back arrow to return to the previous page, the script executes again returning them once more to the page they have come from. Is anyone aware of a work around to this problem as it would seem there isn't one? perhaps even a better solution for opening the target page from the iframe as top location. This is really causing confusion for users, and I really need to get the issue fixed.
Another problem I have is that I have opened a popup window, which has a stylesheet linked to it. However it does not seem to know about the stylesheet as my text fonts/ styles are not displayed.
I noticed that when I click on any area outside the two frames, it works again. Idea : "Why not do a setTimeOut or setInterval sort of thing, which just sits and keeps on clicking on a place outside the frames"? Good idea, but doesn't work. Why? Is installing the same kind of key handlers in both the frames the only other way? Even setting focus on an element on the parent page doesn't work.
At my job we have computers that are set up with restricted rights. Firefox 2 is the default browser (good call), but for some reason a site that the user has to visit is IE only (yeah, wtf).
We have a webpage open with a link to that IE only site, now is there a way to open that link in IE from FF? We have full control over these machines, so we could install batch software or whatever it would take.
how to make a code like this website (Samsung P1000 Galaxy Tab images ) there you can see the images when you click the image then the browser will open a new page, and when you click the image again the browser will close
How can I let link page open using IE? For example, I open a webpage using firefox or chrome/opera/safari. When I click the link, open the link using IE <html xmlns="[URL]"> <head id="Head2" runat="server"> </head><body> <a href="#" onClick="window.showModalDialog ('[URL]','','width=600,height=600','screenx=200','screeny=200')"><img src="images/benemanc-01th.jpg" alt="img-01" width="125" height="155" class="thumb" style="display:inline"></a> </body></html>
I have a form that I would like to get the values entered on the page and go to a new page in the same window. I can make the code work to open a new window, but I need it to open in the same window. Here is what I have: