Home Web Front-end JS Tutorial Solution to the error of window.open returning object in js_javascript skills

Solution to the error of window.open returning object in js_javascript skills

May 16, 2016 pm 06:48 PM
object window.open

Solve the error of returning object after window.open

Copy the code The code is as follows:

Just add a void declaration without return parameters in the outer layer of js.

By the way, the parameters of the window.open function are also listed here:

window.open function parameter list
window = object.open([URL ][, name ][, features ][, replace]]]])
URL: the URL address of the new window
name: the name of the new window, which can be Empty
featurse: attribute control string, where various attributes of the window are controlled. The attributes are separated by commas.
fullscreen= { yes/no/1/0 } Whether to full screen, the default is no
channelmode= { yes/no/1/0 } Whether to display the channel bar, the default is no
toolbar= { yes/no/ 1/0 } Whether to display the toolbar, the default is no
location= { yes/no/1/0 } Whether to display the address bar, the default is no
directories = { yes/no/1/0 } Whether to display the turn button , default no
status= { yes/no/1/0 } Whether to display the window status bar, default no
menubar= { yes/no/1/0 } Whether to display the menu, default no
scrollbars= { yes/no/1/0 } Whether to display scroll bars, the default is yes
resizable= { yes/no/1/0 } Whether the window can be resized, the default is no
width=number Window width (pixel unit)
height=number window height (pixel unit)
top=number window distance from the top of the screen (pixel unit)
left=number window distance from the left side of the screen (pixel unit)
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

window.openHow to close an open window window.openHow to close an open window Dec 06, 2023 pm 02:15 PM

Methods to close an open window: 1. Use "window.close" to close the new window; 2. Use "window.location" to redirect; 3. Use "window.blur" and "window.focus"; 4. Use "window. .history" fallback; 5. Use "window.opener".

What are the methods of converting java Object to byte and byte to Object? What are the methods of converting java Object to byte and byte to Object? Apr 20, 2023 am 11:37 AM

Object to byte and byte to Object Today we will realize how to convert from Object to byte and how to convert from byte to Object. First, define a class student: packagecom.byteToObject;importjava.io.Serializable;publicclassstudentimplementsSerializable{privateintsid;privateStringname;publicintgetSid(){returnsid;}publicvoidsetSid(in

How to use methods in Java Object class How to use methods in Java Object class Apr 18, 2023 pm 06:13 PM

1. Introduction to the Object class Object is a class provided by Java by default. Except for the Object class, all classes in Java have inheritance relationships. By default, it will inherit the Object parent class. That is, objects of all classes can be received using the reference of Object. Example: Use Object to receive objects of all classes classPerson{}classStudent{}publicclassTest{publicstaticvoidmain(String[]args){function(newPerson());function(newStudent());}public

Java uses the getClass() function of the Object class to obtain the runtime class of the object Java uses the getClass() function of the Object class to obtain the runtime class of the object Jul 24, 2023 am 11:37 AM

Java uses the getClass() function of the Object class to obtain the runtime class of the object. In Java, each object has a class, which defines the properties and methods of the object. We can use the getClass() function to get the runtime class of an object. The getClass() function is a member function of the Object class, so all Java objects can call this function. This article will introduce how to use the getClass() function and give some code examples. use get

What is the relationship between basic data types and Object in java What is the relationship between basic data types and Object in java May 01, 2023 pm 04:04 PM

The relationship between basic data types and Object. I know everyone has heard that Object is the base class of all types, but this sentence is actually not correct, because the basic data types in Java have nothing to do with Object. Here are some examples For example, when calling the swap method, you cannot directly pass the int type to the swap(Objectobj) method, because Object actually has nothing to do with the basic data type. At this time, a finds that our types do not match, so it automatically wraps it. It has become an Integer type. At this time, it can be contacted with Object and the swap method can be successfully called. Object, a wrapper class of basic data types

PHP Notice: Trying to get property of non-object solution PHP Notice: Trying to get property of non-object solution Jun 24, 2023 pm 09:34 PM

PHPNotice: Tryingtogetpropertyofnon-object Solution When you are developing in PHP, you may encounter this error message: "Notice: Tryingtogetpropertyofnon-object." This error message is usually due to you using an uninitialized object, or It's because your object has lost its reference in a certain piece of code and cannot access the properties correctly.

How to define the Object structure of redis How to define the Object structure of redis May 28, 2023 pm 05:20 PM

Introduction to the two-tier data structure of Redis. One of the reasons for the high performance of redis is that each of its data structures is specially designed and supported by one or more data structures. These flexible data structures are relied upon to improve reading performance. Fetch and write performance. If you want to understand the data structure of redis, you can discuss it from two different levels: The first level is from the user's perspective. This level is also the calling interface that Redis exposes to the outside, such as: string, list, hash ,set,sortedset. The second level is from the perspective of internal implementation, which belongs to the lower level implementation, such as: dict, sds, ziplist, quicklist, skiplis

How to use Object class and System class in Java? How to use Object class and System class in Java? Apr 23, 2023 pm 11:28 PM

Object is the base class of all Java classes, the top of the entire class inheritance structure, and the most abstract class. Everyone uses toString(), equals(), hashCode(), wait(), notify(), getClass() and other methods every day. Maybe they don’t realize that they are methods of Object, and they don’t look at what other methods Object has. And think about why these methods should be placed in Object. 1. Introduction to JavaObject class - the super class of all classes Object is a special class in the Java class library and is also the parent class of all classes. In other words, Java allows any type of object to be assigned to the Object type

See all articles