Solved

appending location.reload to url with javascript

Posted on 2016-09-29
4
43 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 7

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 82

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 82

Expert Comment

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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'…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

705 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

20 Experts available now in Live!

Get 1:1 Help Now