Solved

Window.open  view source

Posted on 2008-10-28
3
748 Views
Last Modified: 2012-06-27
I have a child window that I am developing, and I open the window with "Window.Open ....".

But after the window opens, I am not able to right click and get a menu option to "view source" of the window. I thought I could do it before.  I can view the source of the parent window, and if I select "view source" from the menu-bar, I get the source of the parent widow even though the child window is open and active.

Anyone know how to show "view source" ?
0
Comment
Question by:sidwelle
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Pawel Witkowski earned 250 total points
ID: 22826733
Instead of "view source" install firefox  and great web developing tool - firebug . There you will have no problems with any source anymore :)
0
 
LVL 13

Expert Comment

by:numberkruncher
ID: 22827260
The following example works for me in Chrome, IE, and FF.
<html>
<head>
	<script language="JavaScript">
		function openWindow(url) {
			popupWin = window.open(url, 'open_window', 'menubar, toolbar, location, status, scrollbars, resizable');
		}
	</script>
</head>
<body>
	<a href="javascript:openWindow('http://www.google.com/');">Open Google in a New Window</a>
</body>
</html>

Open in new window

0
 
LVL 13

Assisted Solution

by:numberkruncher
numberkruncher earned 250 total points
ID: 22827265
Also I would like to agree with wilg32, FireBug is an amazing tool for debugging because it lets you view source, view and edit the DOM, step through JavaScript line by line whilst debugging.

FireFox: http://www.mozilla-europe.org/en/firefox/
FireBug: https://addons.mozilla.org/en-US/firefox/addon/1843
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javascript: add id amounts 5 47
Simple Total function not working 8 30
Javascript/JQuery - HtmlEncode (?) Ajax Result 1 36
Clear Filter 8 40
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question