Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 102973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:03:01+00:00 2026-05-11T01:03:01+00:00

When the source of an iframe is: javascript:”; as in: <iframe id=SpControlFrame1 name=SpControlFrame1 src=javascript:”;

  • 0

When the source of an iframe is:

javascript:''; 

as in:

<iframe id='SpControlFrame1' name='SpControlFrame1' src='javascript:'';' path_src='index.php?cmd=YYY' ></iframe> 

What is going on? What does the src=’javascript:”;’ tell the browser to do?

what does the ‘path_src’ do?

Thanks Chris

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:03:01+00:00Added an answer on May 11, 2026 at 1:03 am

    It tells the browser to display the result of executing the empty string literal. Therefore, it would just display an empty string.

    You can test the effect of this by typing in javascript:'http://stackoverflow.com'; in the address bar of a normal window/tab. You’ll get a white page that says ‘http://stackoverflow.com‘ and you won’t actually be taken to that URL.

    This is the reason that bookmarklets often wrap the code inside void() or an anonymous function that doesn’t return anything to stop the browser from trying to display the result of executing the bookmarklet. For example:

    javascript:void(window.open('dom_spy.html')) 

    Or:

    javascript:(function () { window.open('dom_spy.html'); })() 

    If you directly use code that returns something (a new window instance in this case), the browser will end up displaying that:

    javascript:window.open('dom_spy.html'); 

    In Firefox the above will display:

    [object Window]
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer TFS uses windows authentication, so it's as secure as your… May 11, 2026 at 11:24 am
  • added an answer Subclassing is the best option. I would subclass your main… May 11, 2026 at 11:24 am
  • added an answer <Directory /users/me/private> Order deny,allow Allow from 192.168.4 Deny from all… May 11, 2026 at 11:24 am

Related Questions

When the source of an iframe is: javascript:''; as in: <iframe id=SpControlFrame1 name=SpControlFrame1 src=javascript:'';
when a dll is created out of the source code in a given namespaces
When reading source code, I always want to know the full path of the
Can you use calculated fields in Excel 2007 pivot tables when the data source
I've downloaded the source for SubSonic via SVN. When I try to open the
I have a VB6 project in Visual Source Safe 6.0. When I open the
When using Subversion (svn) for source control with multiple projects I've noticed that the
When creating a new C++ header/source file, what information do you add to the
The output we get when printing C++ sources from Eclipse is rather ugly. Is
When the Boost library/headers is used with VC++ 9 compilers (Visual C++ 2008 Express

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.