Solved

Window.open  view source

Posted on 2008-10-28
3
737 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:
wilq32 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
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…

929 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now