This topic is locked
[SOLVED]

 Open URL in new window?

5/5/2010 9:01:50 PM
PHPRunner General questions
author

Greetings,
I have a link in my Header that, when clicked, I would like to open in a new window. But when I edit the HTML to add target="_blank" it is converted to target=_blank (i.e., the quotation marks are stripped). Result: Link works, but a new window does not open.
Is there a trick to opening an URL in a new window within the Header or Footer with PHPR?
TIA
Rich

A
ann 5/6/2010

Rich,
The code

<a href="..." target=_blank>

also works for opening a new window.
In any case you can also use JavaScript Window.Open() method. Here is a sample:

<a href=# onclick="window.open('page.htm');">link</a>



For more information:

http://www.w3schools.com/jsref/met_win_open.asp

5900 5/6/2010

Thanks, Ann. I'll give that a whirl.



Rich,
The code

<a href="..." target=_blank>

also works for opening a new window.
In any case you can also use JavaScript Window.Open() method. Here is a sample:

<a href=# onclick="window.open('page.htm');">link</a>



For more information:

http://www.w3schools.com/jsref/met_win_open.asp