|
| |
|
|
RickP
Posts: 693 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
New Window - problem in IE7 - 12/19/2006 7:05:34
I have been using HTML 4.01 strict for some time but still wanted to open some links in a new window - "target=_blank" being non-valid for the strict doctype. I found a simple easy to use js option as follows: <a href="http://www.webpage.com"
onclick="window.open(this.href);
return false">www.webpage.com</a> This has worked fine on all browsers I tested previously but now in IE7 the new window opens but the initial page also follows the link - rather defeating the object of course! Any ideas for the simplest work around - other than people saying "you should never open a new window!" Thanks
_____________________________
Regards, Rick On-The-Web-Now!
|
|
|
|
RickP
Posts: 693 Joined: 11/13/2004 From: Kent, U.K. Status: offline
|
RE: New Window - problem in IE7 - 12/19/2006 9:56:11
quote:
It opened a new window for me in IE7. You mean, without the initial page (the one which has the link) also following the link?
_____________________________
Regards, Rick On-The-Web-Now!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|