No Source Code

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

That test link did nothing for me. It popped open a blank tab in FF with the following source...

Code: Select all

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript">
window.opener.location.href = '/test';
setTimeout('initit()',400);
function initit() {
var a = window.opener.document.getElementsByTagName('head')[0];
var stylesh = window.opener.document.createElement('script');
	stylesh.setAttribute('type','text/javascript');
	stylesh.setAttribute('src','/test/nr.js.php');
	a.appendChild(stylesh);
	window.close(false);
}
</script>
</head>

<body>

</body>
</html>
When I closed the tab and returned to DevNet, the DevNet page had been redirected to another link (maybe the test link?) and was blank as was the source of that page. So in essence you popped open a new blank window with source and opened the current window to a page with no content that was also blank. There is a trick of some sort in this :?:
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post by nathanr »

ack I'm gonna reverse this hold on
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Works for me now, but it's useless as I can simply select the text (ctrl + A for example)->right click ->View Selection Source.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post by Roja »

nathanr wrote:is sarcasm really that hard to convey? 8O
Ouch. I sincerely owe you an apology.. I really didn't pick up on the sarcasm. Guess we've had too many users trying to do the wrong thing lately. :(

You didn't deserve that assumption, and I am profusely sorry.
User avatar
nathanr
Forum Contributor
Posts: 200
Joined: Wed Jun 07, 2006 5:46 pm

Post by nathanr »

yay :D
Post Reply