Solved

appending location.reload to url with javascript

Posted on 2016-09-29
4
68 Views
Last Modified: 2016-09-29
i'm using jquery.

Right now i'm calling a url with a button click.

something like this

            // *********** Button click event ***********
            $('#Button1').click(function () {

                // new window
                window.open('http://www.mypage1.html', '_blank', 'width=200, height=200');

            });
            // *********** Button click event ***********

Is there a way to append this   location.reload();  to my url using javascript

See what I want is as the url launches in its web browser window, the first thing I want it to do is do a page refresh with location.reload () and then load the content of my page.
0
Comment
Question by:maqskywalker
  • 2
4 Comments
 
LVL 8

Expert Comment

by:James Bilous
ID: 41822712
You want to reload the page in the new window or in your current window that opened the new window?
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41822733
Is there a way to append this   location.reload();  to my url using javascript
No.  The reload code must be in the new page, not in a link on the old page.
1
 
LVL 1

Author Closing Comment

by:maqskywalker
ID: 41822757
thanks
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41822818
You're welcome.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Head to not include on scroll 4 23
Explain this javascript function to me 2 25
HTML Anchor Link Problem 3 35
Button on Table, name table1 not working 4 21
Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

856 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