﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » How to prevent participants from running an Inquisit experiment on mobile devices?</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Thu, 28 May 2026 02:22:49 GMT</lastBuildDate><ttl>20</ttl><item><title>How to prevent participants from running an Inquisit experiment on mobile devices?</title><link>https://forums.millisecond.com/Topic37154.aspx</link><description>Hi everyone,&lt;br/&gt;&lt;br/&gt;I am trying to prevent participants from running my Inquisit experiment on mobile devices (e.g., smartphones running Android or iOS). I initially tried the following code:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;expt&amp;gt;&lt;br/&gt;/onexptbegin = [&lt;br/&gt;  if (computer.os = "ios") script.abort(true);]&lt;br/&gt;&amp;lt;/expt&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;However, I get the error message: 'computer.os' The expression attempts to set the value of a read-only property.&lt;br/&gt;&lt;br/&gt;What would be the correct way to check the operating system or device type and terminate the experiment if it's running on a mobile device? I only want participants to do the script on a regular computer.&lt;br/&gt;&lt;br/&gt;Thanks in advance for your help!&lt;br/&gt;</description><pubDate>Tue, 18 Feb 2025 15:11:49 GMT</pubDate><dc:creator>Tahwan</dc:creator></item><item><title>RE: How to prevent participants from running an Inquisit experiment on mobile devices?</title><link>https://forums.millisecond.com/Topic37253.aspx</link><description>Thanks. That is an easy fix!</description><pubDate>Tue, 18 Feb 2025 15:11:49 GMT</pubDate><dc:creator>Tahwan</dc:creator></item><item><title>RE: How to prevent participants from running an Inquisit experiment on mobile devices?</title><link>https://forums.millisecond.com/Topic37156.aspx</link><description>&lt;blockquote data-id="37154" class="if-quote-wrapper" unselectable="on" data-guid="1739880992068" contenteditable="false" id="if_insertedNode_1739880990934"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="37154" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="37154" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="37154" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Jakob - 2/18/2025&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-37154"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hi everyone,&lt;br/&gt;&lt;br/&gt;I am trying to prevent participants from running my Inquisit experiment on mobile devices (e.g., smartphones running Android or iOS). I initially tried the following code:&lt;br/&gt;&lt;br/&gt;[code]&amp;lt;expt&amp;gt;&lt;br/&gt;/onexptbegin = [&lt;br/&gt;  if (computer.os = "ios") script.abort(true);]&lt;br/&gt;&amp;lt;/expt&amp;gt;[/code]&lt;br/&gt;&lt;br/&gt;However, I get the error message: 'computer.os' The expression attempts to set the value of a read-only property.&lt;br/&gt;&lt;br/&gt;What would be the correct way to check the operating system or device type and terminate the experiment if it's running on a mobile device? I only want participants to do the script on a regular computer.&lt;br/&gt;&lt;br/&gt;Thanks in advance for your help!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="37154"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;You are using the wrong operator. You are trying to set the computer.os property to the value "ios". That cannot work, it's read-only. "=" is the assignment operator. What you need is "==", the logical comparison operator.&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/expressions/operators.htm"&gt;https://www.millisecond.com/support/docs/v6/html/language/expressions/operators.htm&lt;/a&gt;</description><pubDate>Tue, 18 Feb 2025 12:18:49 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>