Jump to content

Search the Community

Showing results for tags 'console'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 2 results

  1. Did HTML update to where you can't go to a site with a Iframe anymore? If you try to go to a site in a Iframe now you get these errors: 1. Refused to frame 'https://www.w3schools.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' https://mycourses.w3schools.com". 2. Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
  2. Is this the correct coding for console.log? document.write('<h1>My Grocery List</h1>'); var groceries = getGroceries(); printGroceries(groceries); function getGroceries() { var debug = true; var input = prompt ("Enable debugging (Y/N)", ""); if (input != "N" && input != "n") debug = true; if (debug) console.log("beginning script"); document.write('<h1>My Grocery List</h1>'); var items = []; do { var basket = prompt("Enter an item to add to the grocery list (enter ‘q’ to quit):"); if(basket != 'q' && basket != 'Q') items.push(basket); } while (basket != 'q' && basket != 'Q') return items; } function printGroceries(groceryItems) { var groceryitems = i; var msg = ''; msg += '<ol>'; for(var i = 0; i < groceryItems.length; i++) { msg += '<li>' + groceryItems + '</li>'; } document.write('<p>Here's your grocery list:</p>' + msg + '</ol>'); }
×
×
  • Create New...