| |

VerySource

 Forgot password?
 Register
Search
View: 889|Reply: 3

Several puzzle questions, ask

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-18 23:40:01
| Show all posts |Read mode
Questions are as follows:
1. meaning request.referer
2. if (opener)
{window.close ();
}
  What does opener stand for?
 

Please answer, thanks
Reply

Use magic Report

0

Threads

24

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 United States

Post time: 2020-1-25 14:45:01
| Show all posts
Questions are as follows:
1. meaning request.referer
  
Get the url of the last visited page

2. if (opener)
{window.close ();
}
  What does opener stand for?
  Represents the parent form (or page) of an open window
Reply

Use magic Report

0

Threads

73

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-1-25 16:27:01
| Show all posts
1. request.referer: set or get the URL of the previous page

2, opener refers to the parent window that opens or pops up the current window
For example: a.htm:
window.open ('b.htm');
Then in b.htm, the window where a.htm is located is its opener
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 United States

Post time: 2020-1-25 16:54:01
| Show all posts
Previous page. Must be opened from the previous page, not directly from ie.

2.opener represents the window, and the current window is opened by this parent window through the window.open method.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list