The Reveller The Reveller - 5 months ago 18
HTML Question

Can you set the name of the window your website is in without opening it in a new window?

Our website could be opened from a number of locations such as website links bookmarks etc and therefore I have no control over the target attribute of inbound links.

Once on our website, is it possible to set the winodw's name?

I found the solution below but can't get it to work.

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<script type='text/javascript' src=''></script>
$( = 'portal';)

<a href="" target="portal">This window</a>
<a href="" target="_blank">Another window</a>


The reason I want to do this is so that when a user does a password reset via email, they wont end up with our site in 2 separate windows.

p.s. I don't mean the title tag


You use: = "myWindowName";