Solved

Window.open  view source

Posted on 2008-10-28
3
766 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

737 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