javascript - document.referrer does not retrieves value for new tab : Safari -


here 2 sample pages

page 1:

<html> <title>page 1</title> <body> page 1 <a href="page2.html">click go page 2 </a> </body> </html> 

page 2:

<html> <title>page 2</title> <script> function test()  { alert(document.referrer);       } </script> <body onload="javascript:test();"> page 2 <a href="page1.html">click go page 1 </a> </body> </html> 

in safari, when link clicked page1, document.referrer not seems work/hold values.

it works fine in mozilla.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -